#!/bin/bash

set -e # exit on error
set -x # echo commands

# sampledata depends on pandas, skip if we are testing with minimal deps
if  [[ ! -z "${MINIMAL}" ]]; then
    selector='unit and not sampledata'
else
    selector='unit'
fi

# don't run from the top level dir, make sure tests run on installed package
pushd tests
py.test -m "$selector"              \
    --cov=bokeh                     \
    --cov-config=.coveragerc
popd
